package com.tencent.welink.api.video;

import com.tencent.welink.api.OpenApiTokenChange;
import com.tencent.welink.api.base.WelinkOpenApi;
import com.tencent.welink.config.BussinessConfig;
import com.tencent.welink.util.CrontabUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Map;

/**
 * desc:获取设备存储类型及天数
 * Created by junchihe on 2020/6/4.
 */
public class GetDeviceSaveTypeAndDays extends WelinkOpenApi {
    private static final Logger log = LogManager.getLogger(GetDeviceSaveTypeAndDays.class);

    public GetDeviceSaveTypeAndDays() {
        super("/common/video/getDeviceSaveTypeAndDays", true);
    }

    @Override
    public void displayResult(String result) {

    }

    public static void main(String[] args) {
        new BussinessConfig();
        CrontabUtil.addTaskInRate(new OpenApiTokenChange(), BussinessConfig.loginDurationMinutes, true);
        GetDeviceSaveTypeAndDays getDeviceSaveTypeAndDays = new GetDeviceSaveTypeAndDays();
        Map<String, Object> map = getDeviceSaveTypeAndDays.getExtendsPara();

        map.put("din", "200200000000000122");

        getDeviceSaveTypeAndDays.DoHttp();
        CrontabUtil.shutdown();
    }
}